<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ include file="/page/core/common/commonvariable.jsp"%>
<div id="edit-data-warp">
<form class="form-horizontal" role="form" method="post">
	<div class="col-sm-12">
		<div class="form-group  col-sm-6 ">
			<div class="col-xs-26">
	   			<label class="control-label"><spring:message code="user name"></spring:message> <span style="color: red;">*</span></label>
	   		</div>
	   		<div class="col-xs-74" >
				<input type="text" onblur="commonutil.trim(this);" id="usernameId" class="form-control b-validate" ng-model="sysOperatorForm.susername" validate-feature="require" validate-maxCharLength="20"/>
			</div>
		</div>
		<div class="form-group  col-sm-6 ">
			<div class="col-xs-26">
		   		<label class="control-label"><spring:message code="real name"></spring:message> <span style="color: red;">*</span></label>
	   		</div>
	   		<div class="col-xs-74" >
				<input type="text" onblur="commonutil.trim(this);" class="form-control b-validate" ng-model="sysOperatorForm.srealname" validate-feature="require" validate-maxCharLength="20"/>
			</div>
		</div>
	</div>
	
	
	<div class="col-sm-12" ng-if="rightPart=='add'">
		<div class="form-group  col-sm-6 ">
			<div class="col-xs-26">
	   			<label class="control-label"><spring:message code="user password"></spring:message> <span style="color: red;">*</span></label>
	   		</div>
	   		<div class="col-xs-74" >
				<input type="password" onblur="commonutil.trim(this);" class="form-control b-validate" ng-model="sysOperatorForm.spassword" validate-feature="require" validate-maxCharLength="20"/>
			</div>
		</div>
		<div class="form-group  col-sm-6 ">
			<div class="col-xs-26">
		   		<label class="control-label"><spring:message code="confirm password"></spring:message> <span style="color: red;">*</span></label>
	   		</div>
	   		<div class="col-xs-74" >
				<input type="password"  id="confirm_password" onblur="commonutil.trim(this);" class="form-control b-validate" ng-model="sysOperatorForm.spassword1" validate-feature="require" validate-maxCharLength="20"/>
			</div>
		</div>
	</div>
	
	<div class="col-sm-12">
	<div class="form-group  col-sm-6 ">
			<div class="col-xs-26">
	   			<label class="control-label"><spring:message code="email"></spring:message> <span style="color: red;">*</span></label>
	   		</div>
	   		<div class="col-xs-74" >
				<input type="text" onblur="commonutil.trim(this);" class="form-control b-validate" ng-model="sysOperatorForm.smail" validate-feature="require" validate-maxCharLength="20"/>
			</div>
		</div>
		<div class="form-group  col-sm-6 ">
			<div class="col-xs-26">
		   		<label class="control-label"><spring:message code="mobile phone"></spring:message> <span style="color: red;">*</span></label>
	   		</div>
	   		<div class="col-xs-74" >
				<input type="text" onblur="commonutil.trim(this);" class="form-control b-validate" ng-model="sysOperatorForm.smobile" validate-feature="require,positiveNumType" validate-maxCharLength="20"/>
			</div>
		</div>
	</div>
		
		<div class="col-sm-12">
		<div class="form-group  col-sm-6 ">
			<div class="col-xs-26">
	   			<label class="control-label"><spring:message code="telephone"></spring:message></label>
	   		</div>
	   		<div class="col-xs-74" >
				<input type="text" onblur="commonutil.trim(this);" class="form-control b-validate" ng-model="sysOperatorForm.sphone"  validate-maxCharLength="20"/>
			</div>
		</div>
		<div class="form-group  col-sm-6 ">
			<div class="col-xs-26">
		   		<label class="control-label"><spring:message code="disable"></spring:message> </label>
	   		</div>
	   		<div class="col-xs-74" >
				<input  type="checkbox"  ng-true-value="1" ng-false-value="0" width="20" ng-checked="sysOperatorForm.bisfreeze" id="releasedCheckbox" class="form-control"  ng-model="sysOperatorForm.bisfreeze" />
			</div>
		</div>
	</div>
	
	<div class="col-sm-12">
		  <div  class="form-group  col-sm-12 ">
		     	<label class="control-label" >角色列表 </label>
		  </div>
		  	<div class="col-md-12">
				<table class="table">
					<thead>
						<tr>
							<th style="width: 5%">序号</th>
							<th style="width: 8%">角色名</th>
							<th style="width: 25%">备注</th>
							<th style="width: 5%">操作</th>
						</tr>
					</thead>
					<tbody>
						<tr  ng-repeat="r in roleList">
							<td>{{$index+1}}</td>
							<td>{{r.srolename}}</td>
							<td>{{user.sremark}}</td>
							<td> 
								<input  type="checkbox" name="role_ids" value="{{r.sysRoleId}}"  ng-true-value="1" ng-false-value="0" width="20" ng-checked="r.nocheck==0"  class="form-control"/>
							</td>
						</tr>
						
					</tbody>
				</table>
			</div>
	</div>
	
	
	<div class="col-sm-12" style="margin-top: 20px" >
		<div class="col-sm-6">
			<input  type="button"  ng-click="doCancel();"  class="btn btn-primary btn-block" value="取&nbsp;&nbsp;消"/>
		</div>
		<div class="col-sm-6">
			<input  type="button"  ng-click="doAdd();"  class="btn btn-primary btn-block" value="保&nbsp;&nbsp;存"/>
		</div>
	</div>
</form>
</div>
